package com.guomao.filedemos;

import java.io.File;
import java.util.Date;

public class FileDemoB {


    public static void main(String[] args) {


        File file1 = new File("D://guomaolesson");
        File file2 = new File("D://filedemos");

//        System.out.println(file1.exists());
//        System.out.println(file2.exists());


//        System.out.println(file1.isDirectory());
//        System.out.println(file2.isDirectory());

        File file3 = new File("D://新建 文本文档.txt");
        System.out.println(file3.isFile());


        System.out.println(file3.isHidden());

        System.out.println(file3.length());

        System.out.println(file3.lastModified());

        Date d = new Date(1748139690278L);
        System.out.println(d);
    }
}
